package com.ruoyi.common.elasticsearch.service;


import com.ruoyi.common.elasticsearch.domain.EsSkuInfo;
import com.ruoyi.common.elasticsearch.domain.SearchParam;
import com.ruoyi.common.elasticsearch.domain.SearchResult;
import com.ruoyi.utils.ResponseResult;

import java.util.List;

/**
 * @ClassName ElasticSearchService
 * @Description ElasticSearch操作
 * @Author huangshun
 * @Date 2021/1/22 0022 下午 6:49
 */
public interface ElasticSearchService {


    public boolean saveEs(List<EsSkuInfo> skuInfoList);

    public void updateEs(EsSkuInfo skuInfo);

    public void deleteEs(String id);

    public SearchResult searchEs(SearchParam searchParam);
    /*
    * 方法名 searchCatalog
    * 描述 TODO 获取所有分类聚合统计
    * 作者:黄顺
    * 时间 2021/5/20 0020 11:24
    * @Param [catalogName]
    */
    public ResponseResult searchCategory(String CategoryName);

}
